'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/app/service/serviceRegister', controller.controllerRegister.controllerRegister);
  router.post('/app/service/serviceLogin', controller.controllerLogin.controllerLogin);
  router.post('/app/service/serviceAddCourse', controller.controllerAddCourse.controllerAddCourse);
  router.post('/app/service/serviceGetCourse', controller.controllerGetCourse.controllerGetCourse);

};
